# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysstat
# !!! 12.6.x are stable versions !!!
pkgver=12.6.2
pkgrel=0
pkgdesc="Performance monitoring tools"
url="http://pagesperso-orange.fr/sebastien.godard/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sysstat/sysstat/archive/v$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-compress-manpg \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install

}

sha512sums="
376047de55598c6f671b999203809219a40206a9c58499399681af9ebe6048dd4da96c8ef5827d75cc369a7b69c3f1aadef1a5e8deec318a12b230d61f09fc08  sysstat-12.6.2.tar.gz
"
